<?php


class Game
{

    /*****************************
    参数
     *****************************/


    const PaymentType_AA		= 1;	//1AA
    const PaymentType_Creator	= 2;	//1房主

    /*	房间用户uid	*/
    const RoomUser_UID			= "[roomid]:[accountid]";


    /*	开局默认分数	*/
    const Default_Score				= 5;
    const Default_SpendTicketCount	= 1;

    //特殊牌型
    const Rule_CardDi_Multiple			= 5;	//地公
    const Rule_CardLei_Multiple			= 7;	//雷公
    const Rule_CardBao9_Multiple		= 9;	//暴玖
    const Rule_CardTian_Multiple		= 10;	//天公

    const Rule_CardMixSan_Multiple		= 5;	//混三公
    const Rule_CardThree_Multiple		= 7;	//三条
    const Rule_CardThreeSan_Multiple	= 9;	//大三公

    //零点1倍，九点3倍，八点2倍
    const Rule_Card7_Multiple_1		= 1;	//7
    const Rule_Card8_Multiple_1		= 1;	//8
    const Rule_Card9_Multiple_1		= 1;	//9
    const Rule_Card10_Multiple_1	= 1;	//零点

    //零点1倍，九点3倍，八点七点2倍
    const Rule_Card7_Multiple_2		= 2;	//7
    const Rule_Card8_Multiple_2		= 2;	//8
    const Rule_Card9_Multiple_2		= 3;	//9
    const Rule_Card10_Multiple_2	= 1;	//零点


    /*	用户状态	*/
    const AccountStatus_Initial		= 0;	//首次进房初始状态
    const AccountStatus_Notready	= 1;	//未准备
    const AccountStatus_Ready		= 2;	//已准备
    const AccountStatus_Choose		= 3;	//选择抢庄
    const AccountStatus_Notgrab		= 4;	//不抢庄
    const AccountStatus_Grab		= 5;	//抢庄
    const AccountStatus_Bet			= 6;	//下注
    const AccountStatus_Notshow		= 7;	//未摊牌
    const AccountStatus_Show		= 8;	//摊牌

    /*	在线状态	*/
    const OnlineStatus_Offline		= 0;	//离线
    const OnlineStatus_Online		= 1;	//在线

    /*	游戏中状态	*/
    const PlayingStatus_Waiting		= 1;	//等待别人中
    const PlayingStatus_Betting		= 2;	//下注中
    const PlayingStatus_show		= 3;	//已摊牌

    /*	房间状态	*/
    const RoomStatus_Waiting		= 1;	//等待中
    const RoomStatus_Playing		= 2;	//游戏中
    const RoomStatus_Closed			= 3;	//已关闭

    /*	操作超时时间	*/
    const LimitTime_StartGame		= 30;	//第一局开局时限
    const LimitTime_Ready			= 9;	//每局之间时限
    const LimitTime_Grab			= 10;	//抢庄时限
    const LimitTime_Betting			= 15;	//下注时限
    const LimitTime_Show			= 15;	//摊牌时限
    const LimitTime_ClearRoom		= 300;	//清理房间时间


    /*	倍率	*/
    const Cardtype_Boom				= 6;	//炸弹
    const Cardtype_Five				= 5;	//五花牛
    const Cardtype_Zero				= 3;	//牛牛
    const Cardtype_Double			= 2;	//7到9点
    const Cardtype_Default			= 1;	//1到6点

    /*	游戏回合	*/
    const Circle_Grab				= 1;	//叫庄
    const Circle_Bet				= 2;	//下注
    const Circle_Show				= 3;	//摊牌



    /*	房间类型	*/
    const BankerMode_FreeGrab			= 1;	//自由抢庄
    const BankerMode_SeenGrab			= 2;	//明牌抢庄
    const BankerMode_TenGrab			= 3;	//牛牛上庄
    const BankerMode_NoBanker			= 4;	//通比牛牛
    const BankerMode_FixedBanker		= 5;	//固定庄家

    const LimitTime_Grab_1			= 10;	//抢庄时限 自由叫庄
    const LimitTime_Betting_1		= 15;	//下注时限 自由叫庄

    const LimitTime_Grab_2			= 10;	//抢庄时限 明牌抢庄
    const LimitTime_Betting_2		= 15;	//下注时限 明牌抢庄

    const LimitTime_Grab_3			= 0;	//抢庄时限 牛牛上庄
    const LimitTime_Betting_3		= 15;	//下注时限 牛牛上庄

    const LimitTime_Grab_4			= 0;	//抢庄时限 通比牛牛
    const LimitTime_Betting_4		= 0;	//下注时限 通比牛牛

    const LimitTime_Grab_5			= 0;	//抢庄时限 固定庄家
    const LimitTime_Betting_5		= 15;	//下注时限 固定庄家

    const Game_Type = 20;




}


/* End of file constants.php */
/* Location: ./application/config/constants.php */
